package com.jsgt.greekfire.common.http

import com.jsgt.greekfire.bean.MessageBean
import com.jsgt.greekfire.bean.MessagePage
import com.jsgt.greekfire.bean.Version
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface ServerService {

    /**
     * 获取地址信息
     */
    @GET("api/version")
    suspend fun getVersion(): ResponseData<Version>

    /**
     * 公告列表
     */
    @POST("api/notice")
    suspend fun noticeList(@Body params: RequestBody): ResponseData<MessagePage>
}